﻿<metro:Window x:Class="SkypeTranslater.Windows.QuickTranslateWindow"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:metro="http://schemas.codeplex.com/elysium/theme"
              Title="Quick translate"
              Width="700"
              Height="380">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="30" />
			<RowDefinition />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>
		<StackPanel Grid.ColumnSpan="2"
		            DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
		                                                                 AncestorType=Window}}"
		            Orientation="Horizontal">
			<TextBlock VerticalAlignment="Center" Text="From language:" />
			<ComboBox x:Name="cmbFromLang"
			          Width="50"
			          Margin="4,0,0,0"
			          SelectedIndex="0">
				<ComboBox.Items>
					<ComboBoxItem>en</ComboBoxItem>
					<ComboBoxItem>ru</ComboBoxItem>
					<ComboBoxItem>ge</ComboBoxItem>
					<ComboBoxItem>ua</ComboBoxItem>
				</ComboBox.Items>
			</ComboBox>
			<Separator />
			<TextBlock Margin="4,0,0,0"
			           VerticalAlignment="Center"
			           Text="To language:" />
			<ComboBox x:Name="cmbToLang"
			          Width="50"
			          Margin="4,0,0,0"
			          SelectedIndex="0">
				<ComboBox.Items>
					<ComboBoxItem>ru</ComboBoxItem>
					<ComboBoxItem>en</ComboBoxItem>
					<ComboBoxItem>ge</ComboBoxItem>
					<ComboBoxItem>ua</ComboBoxItem>
				</ComboBox.Items>
			</ComboBox>
			<Button x:Name="btnTranslate"
			        Margin="5,0,0,0"
			        Command="{Binding TranslateCommand}"
			        Content="Translate" />
		</StackPanel>
		<TextBox x:Name="txtFroTranslate"
		         Grid.Row="1"
		         AcceptsReturn="True"
		         AcceptsTab="True"
		         TextWrapping="Wrap" />
		<TextBox x:Name="txtTranslResult"
		         Grid.Row="1"
		         Grid.Column="1"
		         AcceptsReturn="True"
		         AcceptsTab="True"
		         TextWrapping="Wrap" />
	</Grid>
</metro:Window>
